<template>
  <div>
    <Header />
    <Footer :type="3" />
    <div class="mypage-container">
      <div class="app-container">
        <!-- 顶部导航 -->
        <header class="mobile-header">
          <div class="header-left">
            <span class="menu-icon">≡</span>
          </div>
          <div class="header-title">
            <h1>戎归职途</h1>
            <p class="subtitle">退役军人就业服务平台</p>
          </div>
          <div class="header-right">
            <span class="user-icon">👤</span>
          </div>
        </header>

        <!-- 用户欢迎区 -->
        <section class="user-welcome">
          <div class="welcome-content">
            <h2>欢迎回来，张班长</h2>
            <p>您有2条新消息</p>
          </div>
          <div class="military-badge">
            <!-- <img src="badge-icon.png" alt="荣誉徽章" /> -->
          </div>
        </section>

        <!-- 功能入口 -->
        <section class="feature-grid">
          <div class="feature-card" @click="feedback">
            <div class="feature-icon" style="background-color: #e3f2fd">📨</div>
            <span>投递反馈</span>
          </div>
          <div class="feature-card" @click="resume">
            <div class="feature-icon" style="background-color: #e8f5e9">📝</div>
            <span>我的简历</span>
          </div>
          <!-- 其他功能卡片... -->
        </section>

        <!-- 热门岗位 -->
        <section class="job-section">
          <div class="section-header">
            <h3>推荐岗位</h3>
            <a href="#" class="view-all">查看全部 ></a>
          </div>
          <div class="job-list">
            <!-- 岗位卡片... -->
          </div>
        </section>
      </div>
    </div>
  </div>
</template>
<script setup>
import { ref } from "vue";
import Header from "@/components/Header.vue";
import Footer from "@/components/footer.vue";
import { useRouter } from "vue-router";
const router = useRouter();
const id = ref("");
const nick_name = ref("测试");
const menuList = ref([
  {
    name: "个人资料",
    icon: "/static/imgs/mine/mine_icon_personaldata@2x.png",
    path: "/pages/mine/personal",
    width: "58px",
  },
]);
const feedback = () => {
  router.push("/user/feedback");
};
const resume = () =>{
  router.push("/user/resume");
}
</script>
<style lang="scss" scoped>
/* 首页样式 */
.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.header-title h1 {
  margin: 0;
  font-size: 18px;
  color: var(--army-green);
}

.subtitle {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.user-welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, var(--army-green), var(--deep-green));
  color: white;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  margin-bottom: 5px;
}

.job-section {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
</style>